<%@ page pageEncoding="UTF-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<!DOCTYPE html>
<html> 
<head> 
<meta http-equiv="Content-Type" content="text/html; charset=gb2312"utf-8" /> 
<title>顾客列表</title> 
</head> 
<style type="text/css"> 
body { 
	font: normal 21px auto "Trebuchet MS", Verdana, Arial, Helvetica, sans-serif; 
	color: #4f6b72; 
	background: #E6EAE9; 
	display: flex;
	align-items: center;
	justify-content: center;
	

} 
 
#mytable { 
width: 800px; 


} 
 
caption { 
margin-top:120px
padding: 0 0 5px 0; 
width: 700px; 
text-align: center; 
} 
 
th { 
color: #4f6b72; 
border: 1px solid #C1DAD7; 
letter-spacing: 2px; 
text-transform: uppercase; 
padding: 6px 6px 6px 12px; 
background: #CAE8EA  no-repeat; 

} 
 
td { 
border: 1px solid #C1DAD7; 
background: #fff; 
padding: 6px 6px 6px 12px; 
color: #4f6b72; 
} 

</style> 
<body> 
<table id="mytable" cellspacing="0"> 
	<caption>顾客管理表</caption> 
	<thead>
	<tr> 
	<th scope="col">序号</th> 
	<th scope="col">用户名</th> 
	<th scope="col">密码</th> 
	<th scope="col">性别</th>
	<th scope="col">电话号码</th> 
	<th scope="col">身份</th>
	<th scope="col">操作</th>
	</tr> 
	</thead>
	<tbody>
	<c:forEach var="users" items="${users}" varStatus="vs">
			<tr>
				<td>${vs.count}</td>
				<td>${users.username}</td>
				<td>${users.password}</td>
				<td><c:choose>
						<c:when test="${users.sex == 0 }">女</c:when>
						<c:when test="${users.sex == 1 }">男</c:when>
					</c:choose></td>
				<td>${users.iphone}</td>
				<td><c:choose>
						<c:when test="${users.ident == 0 }">管理员</c:when>
						<c:when test="${users.ident == 1 }">商家</c:when>
						<c:when test="${users.ident == 2 }">顾客</c:when>
					</c:choose>
				</td>
				<td>
                <a href="${pageContext.request.contextPath}/deleteUser.action?user_id=${users.user_id}">删除</a>
                </td>
			</tr>
	</c:forEach>
</table> 
</body> 
</html>